
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>common模块 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="common2.html" />
    
    
    <link rel="prev" href="../jeesuite-lib.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    概要
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../architecture.html">
            
                <a href="../architecture.html">
            
                    
                    总体架构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../quick-start.html">
            
                <a href="../quick-start.html">
            
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../quickstart/confcenter.html">
            
                <a href="../quickstart/confcenter.html">
            
                    
                    配置中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../quickstart/oneplatform.html">
            
                <a href="../quickstart/oneplatform.html">
            
                    
                    oneplatform企业级开发平台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../quickstart/passport.html">
            
                <a href="../quickstart/passport.html">
            
                    
                    统一认证平台
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../jeesuite-lib.html">
            
                <a href="../jeesuite-lib.html">
            
                    
                    jeesuite-libs使用文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="common.html">
            
                <a href="common.html">
            
                    
                    common模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="common2.html">
            
                <a href="common2.html">
            
                    
                    common2模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="spring.html">
            
                <a href="spring.html">
            
                    
                    Spring模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="mybatis.html">
            
                <a href="mybatis.html">
            
                    
                    mybatis模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="cache.html">
            
                <a href="cache.html">
            
                    
                    cache模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="kafka.html">
            
                <a href="kafka.html">
            
                    
                    kafka模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="scheduler.html">
            
                <a href="scheduler.html">
            
                    
                    scheduler模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="filesystem.html">
            
                <a href="filesystem.html">
            
                    
                    filesystem模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="rest.html">
            
                <a href="rest.html">
            
                    
                    restAPI模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="springboot-starter.html">
            
                <a href="springboot-starter.html">
            
                    
                    springboot-starter模块
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../integration.html">
            
                <a href="../integration.html">
            
                    
                    系统集成
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../integration/confcenter.html">
            
                <a href="../integration/confcenter.html">
            
                    
                    集成配置中心
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../integration/passport.html">
            
                <a href="../integration/passport.html">
            
                    
                    集成认证中心
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../base-env-install.html">
            
                <a href="../base-env-install.html">
            
                    
                    附：基础环境搭建
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >common模块</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x529F;&#x80FD;&#x8BF4;&#x660E;">&#x529F;&#x80FD;&#x8BF4;&#x660E;</h3>
<p>common&#x6A21;&#x5757;&#x63D0;&#x4F9B;&#x57FA;&#x7840;&#x5DE5;&#x5177;&#x7C7B;&#xFF0C;&#x4F9D;&#x8D56;common-lang3&#x3002;</p>
<h3 id="&#x4F7F;&#x7528;&#x8BF4;&#x660E;">&#x4F7F;&#x7528;&#x8BF4;&#x660E;</h3>
<h4 id="&#x6DFB;&#x52A0;&#x4F9D;&#x8D56;">&#x6DFB;&#x52A0;&#x4F9D;&#x8D56;</h4>
<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;com.jeesuite&lt;/groupId&gt;
    &lt;artifactId&gt;jeesuite-common&lt;/artifactId&gt;
    &lt;version&gt;[&#x6700;&#x65B0;&#x7248;&#x672C;]&lt;/version&gt;
&lt;/dependency&gt;
</code></pre><ul>
<li>&#x52A0;&#x5BC6;&#x7C7B;&#xFF1A;AES,DES,RSA,Base64&#xFF0C;SHA1&#xFF0C;SimpleCryptUtils(&#x53EF;&#x9006;&#x52A0;&#x5BC6;)&#xFF0C;DigestUtils(MD5&#x3001;MD5&#x77ED;&#x7801;)</li>
<li><p>HttpUtils:&#x57FA;&#x4E8E;HttpURLConnection&#x5B9E;&#x73B0;&#x7684;http&#x64CD;&#x4F5C;&#x5DE5;&#x5177;&#x7C7B;&#xFF0C;&#x65E0;&#x7B2C;&#x4E09;&#x65B9;&#x4F9D;&#x8D56;&#xFF0C;&#x9002;&#x7528;&#x7B80;&#x5355;&#x65E0;&#x6027;&#x80FD;&#x8981;&#x6C42;&#x573A;&#x666F;&#x3002;</p>
<pre><code class="lang-java">      HttpResponseEntity responseEntity = HttpUtils.get(<span class="hljs-string">&quot;http://192.168.1.89:9082/info&quot;</span>);
      <span class="hljs-comment">//&#x4E0A;&#x4F20;&#x6587;&#x4EF6;</span>
      HttpRequestEntity entity = HttpRequestEntity.create()
                                           .addFileParam(<span class="hljs-string">&quot;file&quot;</span>, <span class="hljs-keyword">new</span> FileItem(<span class="hljs-string">&quot;/Users/jiangwei/Desktop/homepage.txt&quot;</span>))
                                           .basicAuth(<span class="hljs-string">&quot;admin&quot;</span>, <span class="hljs-string">&quot;123456&quot;</span>);
      responseEntity = HttpUtils.post(<span class="hljs-string">&quot;http://192.168.1.89:9082/upload&quot;</span>, entity);
      System.out.println(responseEntity);

      <span class="hljs-comment">//post</span>
      responseEntity = HttpUtils.post(<span class="hljs-string">&quot;http://192.168.1.89:9082/login&quot;</span>, 
                    HttpRequestEntity.create()
                                     .addTextParam(<span class="hljs-string">&quot;name&quot;</span>, <span class="hljs-string">&quot;vakinge&quot;</span>)
                                     .addTextParam(<span class="hljs-string">&quot;password&quot;</span>, <span class="hljs-string">&quot;123456&quot;</span>));

      <span class="hljs-comment">//post json</span>
      responseEntity = HttpUtils.postJson(<span class="hljs-string">&quot;http://192.168.1.89:9082/delete&quot;</span>, <span class="hljs-string">&quot;{&apos;id&apos;:&apos;1000&apos;}&quot;</span>, <span class="hljs-string">&quot;utf-8&quot;</span>);

      <span class="hljs-keyword">if</span>(responseEntity.isSuccessed()){
          System.out.println(responseEntity.getBody());
       }
</code></pre>
</li>
<li><p>JsonUtils:Json&#x5B57;&#x7B26;&#x4E32;&#x4E0E;&#x5BF9;&#x8C61;&#x8F6C;&#x5316;&#xFF0C;&#x57FA;&#x4E8E;jackson&#x5C01;&#x88C5;&#x3002;</p>
</li>
<li>&#x5E8F;&#x5217;&#x5316;&#x5DE5;&#x5177;&#xFF1A;FSTSerializer&#xFF0C;JavaSerializer&#xFF0C;KryoSerializer&#xFF0C;KryoPoolSerializer</li>
<li>PackageScanner&#xFF1A;&#x5305;&#x626B;&#x63CF;</li>
<li>BeanCopyUtils&#xFF1A;bean&#x4E4B;&#x95F4;&#x503C;&#x590D;&#x5236;&#x5DE5;&#x5177;&#x7C7B;&#xFF0C;&#x6BD4;BeanUtils&#x6548;&#x7387;&#x9AD8;</li>
<li>DateUtils&#xFF1A;&#x5E38;&#x7528;&#x65E5;&#x671F;&#x51FD;&#x6570;&#xFF0C;&#x4E0E;common-lang&#x5305;&#x65E5;&#x671F;&#x51FD;&#x6570;&#x4E92;&#x8865;</li>
<li>FormatValidateUtils&#xFF1A;&#x5E38;&#x7528;&#x683C;&#x5F0F;&#x6821;&#x9A8C;&#x5DE5;&#x5177;</li>
<li>HashUtils&#xFF1A;MurMurHash&#x7B97;&#x6CD5;&#x5B9E;&#x73B0;&#x7684;hash&#x7B97;&#x6CD5;</li>
<li>JDBCUtils&#xFF1A;jdbc&#x5DE5;&#x5177;</li>
<li>ReflectUtils&#xFF1A;&#x53CD;&#x5C04;&#x5DE5;&#x5177;</li>
<li>ResourceUtils&#xFF1A;&#x5C5E;&#x6027;&#x8BFB;&#x53D6;&#x5DE5;&#x5177;</li>
<li>NodeNameHolder&#xFF1A;&#x5168;&#x5C40;&#x8282;&#x70B9;&#x540D;&#x79F0;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../jeesuite-lib.html" class="navigation navigation-prev " aria-label="Previous page: jeesuite-libs使用文档">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="common2.html" class="navigation navigation-next " aria-label="Next page: common2模块">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"common模块","level":"1.3.1","depth":2,"next":{"title":"common2模块","level":"1.3.2","depth":2,"path":"jeesuite-libs/common2.md","ref":"jeesuite-libs/common2.md","articles":[]},"previous":{"title":"jeesuite-libs使用文档","level":"1.3","depth":1,"path":"jeesuite-lib.md","ref":"jeesuite-lib.md","articles":[{"title":"common模块","level":"1.3.1","depth":2,"path":"jeesuite-libs/common.md","ref":"jeesuite-libs/common.md","articles":[]},{"title":"common2模块","level":"1.3.2","depth":2,"path":"jeesuite-libs/common2.md","ref":"jeesuite-libs/common2.md","articles":[]},{"title":"Spring模块","level":"1.3.3","depth":2,"path":"jeesuite-libs/spring.md","ref":"jeesuite-libs/spring.md","articles":[]},{"title":"mybatis模块","level":"1.3.4","depth":2,"path":"jeesuite-libs/mybatis.md","ref":"jeesuite-libs/mybatis.md","articles":[]},{"title":"cache模块","level":"1.3.5","depth":2,"path":"jeesuite-libs/cache.md","ref":"jeesuite-libs/cache.md","articles":[]},{"title":"kafka模块","level":"1.3.6","depth":2,"path":"jeesuite-libs/kafka.md","ref":"jeesuite-libs/kafka.md","articles":[]},{"title":"scheduler模块","level":"1.3.7","depth":2,"path":"jeesuite-libs/scheduler.md","ref":"jeesuite-libs/scheduler.md","articles":[]},{"title":"filesystem模块","level":"1.3.8","depth":2,"path":"jeesuite-libs/filesystem.md","ref":"jeesuite-libs/filesystem.md","articles":[]},{"title":"restAPI模块","level":"1.3.9","depth":2,"path":"jeesuite-libs/rest.md","ref":"jeesuite-libs/rest.md","articles":[]},{"title":"springboot-starter模块","level":"1.3.10","depth":2,"path":"jeesuite-libs/springboot-starter.md","ref":"jeesuite-libs/springboot-starter.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"jeesuite-libs/common.md","mtime":"2017-09-11T02:03:00.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-05-04T10:30:11.187Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

